;Assembler header file for OptionButton
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:07:20 2005
;Jonathan Coxhead, jonathan@doves.demon.co.uk, 5 Sept 1995

        [       :LNOT: :DEF: OptionButton_Hdr
        GBLS    OptionButton_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_Toolbox
        GBLS    Get_Toolbox
        ]
        [       :LNOT: :DEF: Toolbox_Hdr
Get_Toolbox                     SETS    "GET oslib/Toolbox.Hdr"
        |
Get_Toolbox                     SETS    ""
        ]
        $Get_Toolbox

        [       :LNOT: :DEF: Get_Gadget
        GBLS    Get_Gadget
        ]
        [       :LNOT: :DEF: Gadget_Hdr
Get_Gadget                      SETS    "GET oslib/Gadget.Hdr"
        |
Get_Gadget                      SETS    ""
        ]
        $Get_Gadget

;Symbols for constants
Class_OptionButton              *       &C0
OptionButton_GenerateStateChanged *       &1
OptionButton_On                 *       &4
Action_OptionButtonStateChanged *       &82882
OptionButton_StateChangedAdjust *       &1
OptionButton_StateChangedSelect *       &4

;Symbols for structure offsets and sizes
                                ^       0
OptionButton_Gadget_label       #       Toolbox_MsgReference
OptionButton_Gadget_label_limit #       Int
OptionButton_Gadget_action      #       Bits
OptionButton_Gadget             *       @

                                ^       0
OptionButton_Object             Gadget_Object_MEMBERS
OptionButton_Object_label       #       Toolbox_MsgReference
OptionButton_Object_label_limit #       Int
OptionButton_Object_action      #       Bits
OptionButton_Object             *       @

                                ^       0
OptionButton_ActionStateChanged_on #       Bool
OptionButton_ActionStateChanged *       @

                                ^       0
OptionButton_ActionStateChangedBlock Toolbox_ActionHeader_MEMBERS
OptionButton_ActionStateChangedBlock_on #       Bool
OptionButton_ActionStateChangedBlock *       @


;Symbols for SWI's and SWI reason codes
OptionButton_SetLabel           *       &C0
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C0
   ;  R3 = option_button (Toolbox_C)
   ;  R4 -> label (String)

OptionButton_GetLabel           *       &C1
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C1
   ;  R3 = option_button (Toolbox_C)
   ;  R4 = buffer (pointer to String)
   ;  R5 = size (Int)
   ;Exit
   ;  R5 = used (Int)

OptionButton_SetAction          *       &C2
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C2
   ;  R3 = option_button (Toolbox_C)
   ;  R4 = action (Bits)

OptionButton_GetAction          *       &C3
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C3
   ;  R3 = option_button (Toolbox_C)
   ;Exit
   ;  R0 = action (Bits)

OptionButton_SetState           *       &C4
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C4
   ;  R3 = option_button (Toolbox_C)
   ;  R4 = on (Bool)

OptionButton_GetState           *       &C5
   ;Entry
   ;  R0 = flags (Bits)
   ;  R1 = window (Toolbox_O)
   ;  R2 = &C5
   ;  R3 = option_button (Toolbox_C)
   ;Exit
   ;  R0 = on (Bool)

        ]
        END
